import request from '@/utils/request';

// 获取教师列表
export function getTeacherList(params) {
  return request({
    url: '/api/teachers/list',
    method: 'get',
    params
  });
}

// 添加教师
export function addTeacher(data) {
  return request({
    url: '/api/teachers/add',
    method: 'post',
    data
  });
}

// 更新教师信息
export function updateTeacher(data) {
  return request({
    url: '/api/teachers/update',
    method: 'put',
    data
  });
}

// 删除教师
export function deleteTeacher(id) {
  return request({
    url: `/api/teachers/delete/${id}`,
    method: 'delete'
  });
}

// 获取教师详情
export function getTeacherDetail(id) {
  return request({
    url: `/api/teachers/detail/${id}`,
    method: 'get'
  });
} 